/*
package com.object.configuration.config;

import cn.dev33.satoken.context.SaHolder;
import cn.dev33.satoken.filter.SaServletFilter;
import cn.dev33.satoken.id.SaIdUtil;
import cn.dev33.satoken.router.SaRouter;
import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

*/
/**
 * Sa-Token 权限认证 配置类
 *//*



@Configuration
public class SaTokenConfigures implements WebMvcConfigurer {
    // 注册 Sa-Token 全局过滤器 
    @Bean
    public SaServletFilter getSaServletFilter() {
        return new SaServletFilter()
                //排除 制定接口的权限控制
                .addExclude("/index/**", "/msg/**", "/test/**", "/favicon.ico")
                .addInclude("/**")
                .setAuth(r -> {
                    StpUtil.checkLogin();
                })
                .setError(e -> {
                    return SaResult.error(e.getMessage());
                })
                ;
    }
}


*/
